package org.example.myleet.p1224;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(7 == solution.maxEqualFreq(new int[]{1,1,1,2,2,2,3,3,3}));
        Assert.isTrue(2 == solution.maxEqualFreq(new int[]{1,1}));
        Assert.isTrue(8 == solution.maxEqualFreq(new int[]{10,2,8,9,3,8,1,5,2,3,7,6}));
        Assert.isTrue(5 == solution.maxEqualFreq(new int[]{1,1,1,2,2,2}));
        Assert.isTrue(5 == solution.maxEqualFreq(new int[]{2,2,1,1,5,3}));
        Assert.isTrue(7 == solution.maxEqualFreq(new int[]{2,2,1,1,5,3,3,5}));
        Assert.isTrue(13 == solution.maxEqualFreq(new int[]{1,1,1,2,2,2,3,3,3,4,4,4,5}));
    }
}
